package com.ruoyi.test.controller;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.test.domain.Student;
import com.ruoyi.test.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import javax.annotation.security.PermitAll;
import java.util.List;

/**
 * 学生
 * 
 * @author wbk
 */
@Controller
@PermitAll
@RequestMapping("/test/student")
public class StudentController extends BaseController
{
    @Autowired
    private StudentService studentService;


    @PostMapping("/list")
    @ResponseBody
    public List<Student> list(Student student)
    {
        return studentService.selectStudentList(student);
    }


}
